import request from '@/utils/request'

//部门树列表
export function department(data) {
  return request({
    url: '/department',
    method: 'get',
    params: data
  })
}
//获取部门详情
export function detail(data) {
  return request({
    url: '/department/detail',
    method: 'get',
    params: data
  })
}
//添加部门
export function create(data) {
  return request({
    url: '/department/create',
    method: 'post',
    data
  })
}
//编辑部门-保存数据
export function update(data) {
  return request({
    url: '/department/update',
    method: 'post',
    data
  })
}
//删除部门
export function departmentDelete(data) {
  return request({
    url: '/department/delete',
    method: 'post',
    data
  })
}



